#include "ElevatorControl.hpp"
#include "ElevatorControl.cpp"
/*
* 	bool Up_State = false;//上行状态
	bool Down_State = false;//下行状态
	State Current_State = Wait;//电梯当前状态
	int Run_Step = 1;//上升步进值
	int* Floor_Btn = nullptr;//按下的楼层按钮
	string Elevator_Name = "";//电梯名称
	string Index_Tag = "E";//遍历标识
*/
int main()
{
	Elevator* eleOne = new Elevator();
	Elevator* eleTwo = new Elevator();
	/*Elevator* eleThree = new Elevator();
	Elevator* Four = new Elevator();*/
	eleOne->Elevator_Name = "电梯A";
	eleOne->Show_Elevator();
	eleOne->Print_Line(50);

	eleTwo->Elevator_Name = "电梯B";
	eleTwo->Set_StopFloor(10);
	eleTwo->Show_Elevator();
	eleTwo->Print_Line(50);

	Elevator* Ele[2] = { eleOne,eleTwo };
	ElevatorSum = Get_ArrayLength(Ele);

	Timer(Choice_Elevator, Ele, 1);

	delete eleOne;
	delete eleTwo;


	return 0;
}